import dayjs from 'dayjs';
import { get } from 'lodash';
import util from '@/libs/util.js';

export default {
    namespaced: true,
    state: {
        deviceTabName:'deviceList',//设备维护栏目tab的默认name值，
        deviceStatus:''//设备管理的默认状态
    },
    getters: {

    },
    actions: {

    },
    mutations: {
        changeData(state,obj){
            if(_.isArray(obj)){
                obj.map(item=>{
                    state[item.name]=item.value;
                })
            }else{
                state[obj.name]=obj.value;
                // console.log(obj.value,'obj.value====')
            }

        }
    }
}
